<template>
  <div>
    <input type="text" v-model="cityname" />
  </div>
</template>
<script setup>
import { ref, watch } from "vue";
const cityname = ref("bj123");
watch(cityname, (count, preCount) => {
  console.log(count);
});
</script>
<style scoped></style>
